package com.darren.euc.service;

import java.util.List;
import java.util.Map;

import com.darren.euc.entity.PageBean;
import com.darren.euc.entity.Province;
import com.darren.euc.entity.Space;
import com.darren.euc.entity.SpaceStatus;

import net.sf.json.JSONObject;

public interface SpaceService {
    
	public Space save(Space space);
    
	public Space update(Space space);
	
	public void deleteById(Integer id);
    
	public List<Space> getAll();
    
	public PageBean queryForPageUseHQL(JSONObject requestJson,Integer pageSize, Integer currentPage);
	
	public List<Space> queryByCondition(JSONObject requestJson);
	
	public List<SpaceStatus> getAllSpaceStatus();
	
	public List<Province> getAllProvinces();


	PageBean findPage(Map para, int pn, int ps);

	Map spaceDetail(int id);

	Space findById(Integer space_id);

	Space findByUserId(Integer userId);
}